Release 10.1A: OpenEdge Data Management:
SQL Reference


QUARTER

Returns the quarter in the year specified by the argument as a short integer value in the range of 1–4.

Syntax

QUARTER ( date_expression ) 

Example

In this example, which illustrates the QUARTER function, the query requests all rows in the orders table where the order_date is in the third quarter of the year:

SELECT *
    FROM orders
    WHERE QUARTER (order_date) = 3 ; 

Notes

Compatibility

ODBC compatible


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095